<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('users', 'UsersController');
    $router->resource('articles', 'ArticlesController');
    $router->resource('pictuers', 'PictuersController');
    $router->resource('crawler/urls', 'CrawlerUrlsController');
    $router->resource('crawler/articles', 'CrawlerArticlesController');
    $router->resource('crawler/pictuers', 'CrawlerPictuersController');
    $router->resource('origin/urls', 'OriginController');
    $router->resource('categories', 'CategoriesController');
    $router->resource('socials', 'SocialsController');
    $router->resource('crawler/filter', 'CrawlerFilterController');
    $router->get('crawler/filter/test/{filter}', 'CrawlerFilterController@test')->name('crawler.filter.test');
});
